package com.easy.dfcapi.res;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by mac on 2018/1/3.
 */
public class ProductRes {
    private String productId;		// product_id
    private String productNo;		// 商品货号
    private String productName;		// 商品名称
    private String productNameStyle;		// 商品名称显示的样式；包括颜色和字体样式；
    private String brandId;		// 所属品牌ID（外键Brand）
    private String cateId;		// 商品类别ID
    private String unit;		// 计量单位
    private String supportRetail;		// 0-支持零售、1-支持按手销售
    private BigDecimal price;		// 价格/每一计量单位
    private String keywords;		// 商品关键字，放在商品页的关键字中，为搜索引擎收录用
    private String productAddress;		// 产地
    private String productBrief;		// 商品的简短描述
    private String productDesc;		// 商品的详细描述
    private Integer productThumb;		// 商品在前台显示的微缩图片id，如在分类筛选时显示的小图片
    private Integer productImg;		// 商品的实际大小图片，如进入该商品页时介绍商品属性所显示的大图片
    private BigDecimal warnNumber;		// 商品报警数量
    private Integer isAloneSale;		// 是否能单独销售，1，是；0，否；如果不能单独销售，则只能作为某商品的配件或者赠品销售
    private Integer isVirtual;		// 是否虚拟商品 0-实体，1-虚拟
    private String orginPlace;		// 商品原产地
    private BigDecimal unitSize;		// 单位尺寸
    private String sizeDesc;		// 外观尺寸描述
    private BigDecimal unitWeight;		// 单位重量
    private String weightDesc;		// 商品重量描述
    private Integer supportArrears;		// 是否支持欠款默认0
    private Integer deliveryTime;		// 承诺的发货时间
    private Integer returnTime;		// 承诺的退货时间
    private Integer changeTime;		// 承诺的换货时间
    private Date saleTime;		// 定时上架时间
    private Date offTime;		// 到期下架时间
    private Integer integral;		// 默认0,相应积分数
    private String sellerNote;		// 商品商家备注，仅商家可见
    private Integer sortNo;		// 排序号
    private List<StockRes> stock;  //库存
    private List<ImgRes> images;  //产品图片
    private List<VideoRes> videos;  //产品视频
    private List<AttributesRes> attrs;  //产品属性
    private List<AuthRes> auths;  //权限属性
    private Integer ageGroup; //年龄段
    private Integer isOnSale;  //是否销售
    private Integer pageIndex;
    private Integer pageSize;

    public ProductRes(){
        pageIndex = 0;
        pageSize = 15;
    }
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductNameStyle() {
        return productNameStyle;
    }

    public void setProductNameStyle(String productNameStyle) {
        this.productNameStyle = productNameStyle;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getCateId() {
        return cateId;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getSupportRetail() {
        return supportRetail;
    }

    public void setSupportRetail(String supportRetail) {
        this.supportRetail = supportRetail;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getProductAddress() {
        return productAddress;
    }

    public void setProductAddress(String productAddress) {
        this.productAddress = productAddress;
    }

    public String getProductBrief() {
        return productBrief;
    }

    public void setProductBrief(String productBrief) {
        this.productBrief = productBrief;
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }

    public Integer getProductThumb() {
        return productThumb;
    }

    public void setProductThumb(Integer productThumb) {
        this.productThumb = productThumb;
    }

    public Integer getProductImg() {
        return productImg;
    }

    public void setProductImg(Integer productImg) {
        this.productImg = productImg;
    }

    public BigDecimal getWarnNumber() {
        return warnNumber;
    }

    public void setWarnNumber(BigDecimal warnNumber) {
        this.warnNumber = warnNumber;
    }

    public Integer getIsAloneSale() {
        return isAloneSale;
    }

    public void setIsAloneSale(Integer isAloneSale) {
        this.isAloneSale = isAloneSale;
    }

    public Integer getIsVirtual() {
        return isVirtual;
    }

    public void setIsVirtual(Integer isVirtual) {
        this.isVirtual = isVirtual;
    }

    public String getOrginPlace() {
        return orginPlace;
    }

    public void setOrginPlace(String orginPlace) {
        this.orginPlace = orginPlace;
    }

    public BigDecimal getUnitSize() {
        return unitSize;
    }

    public void setUnitSize(BigDecimal unitSize) {
        this.unitSize = unitSize;
    }

    public String getSizeDesc() {
        return sizeDesc;
    }

    public void setSizeDesc(String sizeDesc) {
        this.sizeDesc = sizeDesc;
    }

    public BigDecimal getUnitWeight() {
        return unitWeight;
    }

    public void setUnitWeight(BigDecimal unitWeight) {
        this.unitWeight = unitWeight;
    }

    public String getWeightDesc() {
        return weightDesc;
    }

    public void setWeightDesc(String weightDesc) {
        this.weightDesc = weightDesc;
    }

    public Integer getSupportArrears() {
        return supportArrears;
    }

    public void setSupportArrears(Integer supportArrears) {
        this.supportArrears = supportArrears;
    }

    public Integer getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Integer deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public Integer getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Integer returnTime) {
        this.returnTime = returnTime;
    }

    public Integer getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(Integer changeTime) {
        this.changeTime = changeTime;
    }

    public Date getSaleTime() {
        return saleTime;
    }

    public void setSaleTime(Date saleTime) {
        this.saleTime = saleTime;
    }

    public Date getOffTime() {
        return offTime;
    }

    public void setOffTime(Date offTime) {
        this.offTime = offTime;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getSellerNote() {
        return sellerNote;
    }

    public void setSellerNote(String sellerNote) {
        this.sellerNote = sellerNote;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public List<StockRes> getStock() {
        return stock;
    }

    public void setStock(List<StockRes> stock) {
        this.stock = stock;
    }

    public List<ImgRes> getImages() {
        return images;
    }

    public void setImages(List<ImgRes> images) {
        this.images = images;
    }

    public List<VideoRes> getVideos() {
        return videos;
    }

    public void setVideos(List<VideoRes> videos) {
        this.videos = videos;
    }

    public List<AttributesRes> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<AttributesRes> attrs) {
        this.attrs = attrs;
    }

    public List<AuthRes> getAuths() {
        return auths;
    }

    public void setAuths(List<AuthRes> auths) {
        this.auths = auths;
    }

    public Integer getAgeGroup() {
        return ageGroup;
    }

    public void setAgeGroup(Integer ageGroup) {
        this.ageGroup = ageGroup;
    }

    public Integer getIsOnSale() {
        return isOnSale;
    }

    public void setIsOnSale(Integer isOnSale) {
        this.isOnSale = isOnSale;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getLimitIndex() {

        return this.pageSize * this.getPageIndex();
    }
    public Integer getLimitSize() {
        return pageSize;
    }
}
